<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 1500px;
            height: 2000px;
            border: 10px solid red;
            background: gray repeat;
        }
    </style>
</head>
<body>
    <!--background-image 背景图片
        background-repeat 背景图是否重复
        background-position 背景图片位置
        background-attachment 背景图片是否滚动
    -->
    <div>
        一段文字
        <img src="../images/img.jpg"/>
    </div>
</body>
</html>